Class yassl.applynode
All Packages This Package Previous Next
Class yassl.applynode
java.lang.Object
|
+----yassl.pnode
|
+----yassl.unarynode
|
+----yassl.applynode
-
public class
applynode
-
extends unarynode
This node applies the lambda node to the arglist,
after creating a new environment.
The mechanism is stolen from Scheme, the procedure
is applied in the parent environment that was present
when the lambda node was created.
-
applynode(pnode, Vector)
-
-
eval(Env)
-
Eval'ling an apply node evals the lambdanode, then the arglist,
then hands it off to the apply part of the lambdanode.
-
help(Env)
-
Return a string to be used in help messages about a
particular node.
applynode
public applynode(pnode lambdaproc,
Vector alist)
eval
public pnode eval(Env e) throws yasslError
-
Eval'ling an apply node evals the lambdanode, then the arglist,
then hands it off to the apply part of the lambdanode.
-
Overrides:
-
eval in class pnode
help
public String help(Env e)
-
Return a string to be used in help messages about a
particular node.
-
Overrides:
-
help in class pnode
All Packages This Package Previous Next